<?php

/**
* 
*/
class ErrorController extends Controller
{

  /**
   * Charge les listes d'infos à la construction
   */
  function __construct()
  {
    parent::__construct();
    array_push($this->styles, 'asset/css/app.css');
    array_push($this->styles, 'http://fonts.googleapis.com/css?family=Pirata+One');
    array_push($this->styles, 'http://fonts.googleapis.com/css?family=Raleway');
    array_push($this->styles, 'http://fonts.googleapis.com/css?family=Lobster');
  }

  /**
   * Méthode appellé lorsque la page /?controller=error&action=error404 est lancée
   */
  function error404Action()
  {
    array_push($this->styles, 'asset/css/404.css');

    $this->title = "404";

    include "app/views/error/404.phtml";
  }

}
?>